package community.hospital.service.domain;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import community.hospital.entity.Role;
import com.baomidou.mybatisplus.extension.service.IService;
import community.hospital.entity.request.ListRoleRequest;

import java.util.List;

/**
* @author ydj
* @description 针对表【role】的数据库操作Service
* @createDate 2023-01-16 16:35:35
*/
public interface RoleService extends IService<Role> {


    int countByRoleNameAndRoleCode(String roleCode, String roleName);

    Page<Role> listRole(ListRoleRequest request);

    List<Role> listAllRole();

}
